!function(e){var o="-",t="";screen.width&&(width=screen.width?screen.width:"",height=screen.height?screen.height:"",t+=""+width+" x "+height);var r,n,i,s=navigator.appVersion,a=navigator.userAgent,d=navigator.appName,c=""+parseFloat(navigator.appVersion),u=parseInt(navigator.appVersion,10);-1!=(n=a.indexOf("Opera"))?(d="Opera",c=a.substring(n+6),-1!=(n=a.indexOf("Version"))&&(c=a.substring(n+8))):-1!=(n=a.indexOf("MSIE"))?(d="Microsoft Internet Explorer",c=a.substring(n+5)):-1!=(n=a.indexOf("Chrome"))?(d="Chrome",c=a.substring(n+7)):-1!=(n=a.indexOf("Safari"))?(d="Safari",c=a.substring(n+7),-1!=(n=a.indexOf("Version"))&&(c=a.substring(n+8))):-1!=(n=a.indexOf("Firefox"))?(d="Firefox",c=a.substring(n+8)):-1!=a.indexOf("Trident/")?(d="Microsoft Internet Explorer",c=a.substring(a.indexOf("rv:")+3)):(r=a.lastIndexOf(" ")+1)<(n=a.lastIndexOf("/"))&&(d=a.substring(r,n),c=a.substring(n+1),d.toLowerCase()==d.toUpperCase()&&(d=navigator.appName)),-1!=(i=c.indexOf(";"))&&(c=c.substring(0,i)),-1!=(i=c.indexOf(" "))&&(c=c.substring(0,i)),-1!=(i=c.indexOf(")"))&&(c=c.substring(0,i)),u=parseInt(""+c,10),isNaN(u)&&(c=""+parseFloat(navigator.appVersion),u=parseInt(navigator.appVersion,10));var l=/Mobile|mini|Fennec|Android|iP(ad|od|hone)/.test(s),g=navigator.cookieEnabled?!0:!1;"undefined"!=typeof navigator.cookieEnabled||g||(document.cookie="testcookie",g=-1!=document.cookie.indexOf("testcookie")?!0:!1);var p=o,w=[{s:"Windows 3.11",r:/Win16/},{s:"Windows 95",r:/(Windows 95|Win95|Windows_95)/},{s:"Windows ME",r:/(Win 9x 4.90|Windows ME)/},{s:"Windows 98",r:/(Windows 98|Win98)/},{s:"Windows CE",r:/Windows CE/},{s:"Windows 2000",r:/(Windows NT 5.0|Windows 2000)/},{s:"Windows XP",r:/(Windows NT 5.1|Windows XP)/},{s:"Windows Server 2003",r:/Windows NT 5.2/},{s:"Windows Vista",r:/Windows NT 6.0/},{s:"Windows 7",r:/(Windows 7|Windows NT 6.1)/},{s:"Windows 8.1",r:/(Windows 8.1|Windows NT 6.3)/},{s:"Windows 8",r:/(Windows 8|Windows NT 6.2)/},{s:"Windows NT 4.0",r:/(Windows NT 4.0|WinNT4.0|WinNT|Windows NT)/},{s:"Windows ME",r:/Windows ME/},{s:"Android",r:/Android/},{s:"Open BSD",r:/OpenBSD/},{s:"Sun OS",r:/SunOS/},{s:"Linux",r:/(Linux|X11)/},{s:"iOS",r:/(iPhone|iPad|iPod)/},{s:"Mac OS X",r:/Mac OS X/},{s:"Mac OS",r:/(MacPPC|MacIntel|Mac_PowerPC|Macintosh)/},{s:"QNX",r:/QNX/},{s:"UNIX",r:/UNIX/},{s:"BeOS",r:/BeOS/},{s:"OS/2",r:/OS\/2/},{s:"Search Bot",r:/(nuhk|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask Jeeves\/Teoma|ia_archiver)/}];for(var f in w){var b=w[f];if(b.r.test(a)){p=b.s;break}}var S=o;switch(/Windows/.test(p)&&(S=/Windows (.*)/.exec(p)[1],p="Windows"),p){case"Mac OS X":S=/Mac OS X ([\.\_\d]+)/.exec(a)[1];break;case"Android":S=/Android ([\.\_\d]+)/.exec(a)[1];break;case"iOS":S=/OS (\d+)_(\d+)_?(\d+)?/.exec(s),S=S[1]+"."+S[2]+"."+(0|S[3])}var v="no check";if("undefined"!=typeof swfobject){var h=swfobject.getFlashPlayerVersion();v=h.major>0?h.major+"."+h.minor+" r"+h.release:o}e.jscd={screen:t,browser:d,browserVersion:c,mobile:l,os:p,osVersion:S,cookies:g,flashVersion:v}}(this);var interceptors=interceptors||{};interceptors.botInterceptor={agents:["Googlebot","Googlebot-Image","Googlebot-News","Googlebot-Video","Storebot-Google","Google-InspectionTool","GoogleOther","Google-Extended","APIs-Google","Mediapartners-Google","FeedFetcher-Google","AdsBot-Google-Mobile","GoogleProducer","Google-Site-Verification","Applebot","bingbot","Pingdom","pingbot","AhrefsSiteAudit","Google-Safety","SeekportBot","BitSightBot","SiteAuditBot","SemrushBot-BA","SemrushBot-SI","SemrushBot-SWA","SemrushBot-CT","SplitSignalBot","SemrushBot-COUB","PetalBot","ClarityBot","Jooblebot","Pinterestbot","adidxbot","BingPreview","MicrosoftPreview","Cincraw","AdsBot-Google","PagePeeker","Taboolabot","SiteCheckerBotCrawler","Monsidobot","Seobility","SeobilityBot","Slackbot-LinkExpanding","Slack-ImgProxy","Slackbot","SiteScoreBot","facebookexternalhit","facebookcatalog","PlayStore-Google"],notAllowedPaths:["/web_api/cart","/checkout/cart/api","/mvc/store/element/snippets/cart_preview"],getUserAgents:function(){return this.agents.map(function(e){return e.toLocaleLowerCase()})},isRobot:function(){var e=this.getUserAgents(),o=navigator.userAgent.toLocaleLowerCase(),t=e.find(function(e){return o.includes(e)});return!!t},isAllowedUrl:function(e){var o=this.notAllowedPaths.find(function(o){return e.includes(o)});return!o},intercept:function(e,o){this.isRobot()&&!this.isAllowedUrl(o.url)&&(this.log(o),e.abort())},log:function(e){var o={"${type}":e.type,"${url}":e.url},t="The request to [${type}]${url} has been aborted due its requester to be a robot";Object.entries(o).forEach(function(e){t=t.replace(e[0],e[1])}),console.log(t)}};var tray=tray||{};!function(){tray.pageview=function(){function e(e){if(!e)return!1;var r=document.querySelector('[id^="tray-pageview-send"]');r&&r.parentNode.removeChild(r);var i=document.createElement("script"),s=Date.now();i.async=!0,i.defer=!0,i.id="tray-pageview-send-"+s,e.unique=s;var a=e.url;e=t(e),e=n(e,g),e=n(e,o()),i.src=a+"?"+u(e),document.querySelector("head").appendChild(i)}function o(){return jscd||console.error(l.jscdError),{client_os:jscd.os,client_os_version:jscd.osVersion,client_screen:jscd.screen}}function t(e){return e?(e.loja_id=i(),e.url=escape(e.url),e.origem=escape(r()),e.visita=e._id,e.product_id=s("product-id"),e.category_id=s("category-id"),e.path=escape(document.location.pathname+document.location.search),delete e.url,delete e.status,delete e.message,e.order_id||delete e.order_id,e.category_id||delete e.category_id,e):(console.error(l.dataInvalid),!1)}function r(){return window.document.referrer||(window.document.referrer=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")),window.document.referrer}function n(e,o){var t={};for(var r in e)t[r]=e[r];for(var r in o)t[r]=o[r];return t}function i(){return document.querySelector("html").getAttribute("data-store")||a().getAttribute("data-store")}function s(e){return a().getAttribute("data-"+e)}function a(){return elements.currentScript||(elements.currentScript=document.getElementById("pageview-script")),elements.currentScript}function d(e){return"object"!=typeof e?!1:void(g=e)}function c(o){return interceptors.botInterceptor.isRobot()?void console.log("Pageview not sent due requester to be a robot"):(request=new XMLHttpRequest,request.open("GET","/nocache/info.php?loja="+i(),!0),request.onload=function(){if(204==request.status)return!1;var t=JSON.parse(request.responseText);request.status>=200&&request.status<400&&t.status==REQUEST_SUCCESS?(d(o),e(t)):console.error(l.requestError+t.message)},void request.send())}function u(e){if("object"!=typeof e)return console.error(l.jsonInvalid),!1;var o="",t=Object.keys(e).length,r=0;for(var n in e)o+=n+"="+e[n],r++!=t&&(o+="&");return o}var l={jscdError:"Pageview: jscd plugin not found",jsonInvalid:"Pageview: Data should be a JSON",dataInvalid:"Pageview: No data received",requestError:"Pageview: "},g={};return elements={},REQUEST_SUCCESS="success",REQUEST_ERROR="fail",{send:c}}(),document.documentElement.addEventListener("tray-session-loaded",function(){tray.pageview.send()})}();